extends ../public/layout
block title
    title 支付方式
block content
    .am-g.am-padding-lg.am-text-center.white-background
        .am-u-sm-12.lg-font 订单提交成功！
        .am-u-sm-12.gray-color
            |您需要支付
            span.money-color ￥#{payPrice}
            |元,请尽快支付~
    .am-g.am-margin-top-sm.border-top-add.white-background
        .am-u-sm-12.gray-color.border-bottom-add.am-padding-xs 选择支付方式
    .am-g.white-background.flex.am-padding-xs.border-bottom-add.payWay
        .am-u-sm-3.pay-agent-alipay
        .am-u-sm-7 支付宝支付
        .am-u-sm-2
                i.am-block.check-icon
    if(isWx)
        .am-g.white-background.flex.am-padding-xs.border-bottom-add.payWay
            .am-u-sm-3.pay-agent-wechat-un
            .am-u-sm-7 微信支付
            .am-u-sm-2
                i.am-block.uncheck-icon
    .am-g.am-margin-top-lg
        .am-u-sm-12.am-text-center.am-padding-top-lg
            button.am-btn.am-btn-md.select-class.am-round.go-pay.py-btn(data-orderId="#{orderId}") 确认支付
    input(id="payChannel",value="alipay_wap",type="hidden")
block javascript
    script(type="text/javascript" src="/public/javascripts/payment.js")
    script(src="../../public/javascripts/pingpp.js" type="text/javascript")
    script(type="text/javascript").
        $(function(){
            (function ($) {
                $.getUrlParam = function (name) {
                    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                    var r = window.location.search.substr(1).match(reg);
                    if (r != null) return unescape(r[2]); return null;
                }
            })(jQuery);
            payment.init();
        });


